package com.example.teamilkmall.controller;

import com.example.teamilkmall.entity.CollectInfo;
import com.example.teamilkmall.entity.TeaInfo;
import com.example.teamilkmall.service.CollectInfoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Collection;
import java.util.List;

@RestController
public class CollectInfoController {
    private final CollectInfoService collectInfoService;

    public CollectInfoController(CollectInfoService collectInfoService) {
        this.collectInfoService = collectInfoService;
    }
    @GetMapping("/getCollectInfoList")
    public List<CollectInfo> getAdminList(){
        return collectInfoService.listCollectInfo();
    }
}
